//Note: Label does not extend BaseComponent
package com.dreamana.components
{
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;
	
	public class Label extends TextField
	{
		public static var defaultFormat:TextFormat = new TextFormat("Arial", 12, 0x0, null, null, null, null, null, TextFormatAlign.CENTER);
		
		public function Label(w:int, h:int, format:TextFormat=null, text:String="", offsetX:int=0, offsetY:int=0)
		{
			//default setting
			this.selectable = false;
			this.mouseEnabled = false;
			this.defaultTextFormat = (format)? format : defaultFormat;
			
			this.width = w;
			this.height = h;
			this.text = text;
			this.x += offsetX;
			this.y += offsetY;
		}
	}
}